<template>
  <div id="app">
    <keep-alive :exclude="['ArticleDetail', 'Login', 'Search', 'SearchResult']">
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<script>
import { reqAllChannels } from "@/api";
export default {
  name: "App",
  mounted() {
    this.getChannerl();
  },
  methods: {
    async getChannerl() {
      try {
        const res = await reqAllChannels();
      } catch (error) {
        alert(error.message);
      }
    },
  },
};
</script>

<style></style>
